﻿/*******************************************************************************
 * Copyright © 2017 FriendStar.Framework 版权所有
 * Author: FZH
 * Description: FriendStar快速开发平台
 * Website：http://www.FriendStar.cn
*********************************************************************************/
using System;
using SqlSugar;

namespace FriendStar.Domain.Entity.BOM
{
    /// <summary>
	/// 数据表 PLM_CP_ProductOrder 对应的数据实体类，数据表描述：
	/// </summary>
    [Serializable]
    [SugarMapping(TableName = "PLM_CX_ProductOrder")]
	public partial class PLM_CX_ProductOrderEntity
    {
        ///<summary>
		///
		///</summary>
        public string ProductID { get; set; } 
        ///<summary>
		///
		///</summary>
        public string UseUnit { get; set; } 
        ///<summary>
		///
		///</summary>
        public string ProductNO { get; set; } 
        ///<summary>
		///
		///</summary>
        public decimal? OrderNum { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FCreateBy { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FCreateDate { get; set; } 
        ///<summary>
		///
		///</summary>
        public string FCreateTime { get; set; }



        public string ProductNO2
        {
            get
            {
                if (string.IsNullOrEmpty(ProductNO))
                {
                    return ProductNO;
                }
                else if (ProductNO.Length <= 8)
                {
                    return ProductNO;
                }
                else
                {
                    return ProductNO.Substring(0, 8) + "<br />" + ProductNO.Substring(8);
                }
            }
        }
    }
}